package com.rainng.coursesystem.module.system.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rainng.coursesystem.config.DateJsonSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * (SysGroup)实体类
 *
 * @author makejava
 * @since 2023-06-07 15:12:35
 */
@Data
@TableName("vis_sys_group")
public class SysGroup extends Model<SysGroup> implements Serializable  {

    private static final long serialVersionUID = 778404080504526346L;

//    @TableField("object_id")
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 组别名
     */
    private String groupName;
    /**
     * 组别码
     */
    private String groupCode;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonSerialize(using = DateJsonSerializer.class)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    /**
     * 创建人
     */
    @TableField("create_by")
    private String createBy;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @JsonSerialize(using = DateJsonSerializer.class)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    /**
     * 更新人
     */
    @TableField("update_by")
    private String updateBy;
    /**
     * 备注信息
     */
    private String remark;
}

